<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) {
?>
<h2>日志<span style="font-size:13px"><a href="/feed.php">rss</a></span>
</h2>
<?php if (have_posts()) {
    the_post(); 
?>
<h3 style="display:inline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>&nbsp;&nbsp;<span style="color:grey"><?php the_time('Y年m月d日') ?>发表，<?php comments_popup_link('评论',__('1个评论'), '%个评论'); ?></span></li>
<hr />
<?php
the_content();
}
?>
<hr />
<ul>
<?php  while (have_posts()) { 
    the_post(); 
?>
<div class="single">
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>&nbsp;&nbsp;<span style="color:grey">(<?php the_time('Y年m月d日') ?>发表，<?php comments_popup_link('评论',__('1个评论'), '%个评论'); ?>)</span></li>
<?php if ($first) {
the_content();
$first=false;
}?>
</div>
<?php }?>
</ul>
<ul class="post_archive"><?php wp_get_archives('show_post_count=1&type=monthly'); ?></ul>
<ul class="post_archive"> <?php wp_list_categories('show_count=1&title_li='); ?></ul>
<?php }?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
